import request from '@/utils/request'
import axios from 'axios'

// 登录
export function login(data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}

// 邮箱验证码登录
export function emailLogin(data) {
  return request({
    url: '/auth/emailLogin',
    method: 'post',
    data
  })
}

// 注册
export function register(data) {
  return request({
    url: '/auth/register',
    method: 'post',
    data
  })
}

// 发送验证码
export function sendVerificationCode(data) {
  return request({
    url: '/auth/sendCode',
    method: 'post',
    data
  })
}

// 验证验证码
export function verifyCode(data) {
  return request({
    url: '/auth/verifyCode',
    method: 'post',
    data
  })
} 